class PlayersController < ApplicationController
	def new
		@p = Player.new
	end
	def create
		Player.create(params[:player])
		redirect_to players_path
	end
	def index
		@boards = Board.find :all
		@players = Player.find :all
		@scores = Score.find :all
	end
	def edit
		@p = Player.find params[:id]
	end
	def update
		@p = Player.find params[:id]
		@p.update_attributes params[:player]
		redirect_to players_path
	end
end
